package com.lixinyue.exer;

public class TestBoyAndGirl {
    public static void main(String[] args) {
        Boy boy = new Boy("梁山伯", 29);
        Girl girl = new Girl("祝英台", 23);
        boy.marry(girl);
        girl.marry(boy);
        boy.shout();
        Girl girl2 = new Girl("朱茵", 18);
        int ret=girl.compare(girl2);
        if(ret>0)
        {
            System.out.println(girl.getName()+"大");
        }
        else{
            System.out.println(girl2.getName()+"大");
        }
    }
}
